﻿using SqlSugar;
using YNTK.Common.Const;
using YNTK.Common.Entity;

namespace YNTK.System.Entitys.Resources
{
    /// <summary>
    /// 字典
    /// </summary>
    [SugarTable("base_dictionarys")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class DictionaryEntity:CLDEntityBase
    {
        /// <summary>
        /// 所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 字典分类
        /// </summary>
        [SugarColumn(ColumnName = "F_Type")]
        public int Type { get; set; }

        /// <summary>
        /// 父级id
        /// </summary>
        [SugarColumn(ColumnName = "F_ParentId")]
        public string ParentId { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        [SugarColumn(ColumnName = "F_Name")]
        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnName = "F_Code")]
        public string Code { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "F_Description")]
        public string Description { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }
    }
}
